<?php 

include ("./sendmail.class.php");
$mail = new sendmail();
$email = "您好，这是一个测试邮件！";
$sendmail = $mail->send_mail("smtp.163.com", "PHPBOOK", true); //显示调示信息
if($mail->send("aoqi3628641@163.com", "1048434786@qq.com", "测试SOCKET邮件", $email)) {
    echo "发送成功！";
}else{
    echo "发送失败！";
}